


import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
	


public  class title implements ActionListener
{
	
	public Font f0 = new Font("Times new roman" , Font.BOLD , 22);
	public Font f = new Font("Times new roman" , Font.BOLD , 17);

	public Font f1 = new Font("Verdana", Font.BOLD , 28);
	
	public Font f2 = new Font("Calibrie", Font.BOLD + Font.ITALIC, 15);
	
	public Font f3 = new Font("Algerian", Font.BOLD , 25);

	public JLabel T1= new JLabel("MOBILITY  MANAGEMENT  APPROACHES  FOR  MOBILE  ");
	
	public JLabel T2= new JLabel("IP  NETWORKS : PERFORMANCE  COMPARISON ");
	
	public JLabel T3= new JLabel("AND  USE  RECOMMENDATION");
	public JLabel note= new  JLabel("IEEE Transactions on Mobile Computing ");
	public JLabel note1= new  JLabel("(Vol. 8, No.10, October 2009)");
	public JLabel by = new  JLabel("By");
	public JLabel name = new  JLabel("Name            :");
	public JLabel depart = new JLabel("Depart&year    :");
	public JLabel regno=new JLabel("Registeration no :");
	
	public JButton Sub=new JButton("Submit");
	public JButton Exit=new JButton("Exit");	
	
	public JFrame jf;
	public Container c;

	title()
	{
		Image image1=Toolkit.getDefaultToolkit().getImage("E:/projectdoc/Bandwidth/band1.jpg");
		
		
		jf = new JFrame("");
		c = jf.getContentPane();
		c.setLayout(null);
		jf.setSize(800,670);
		c.setBackground(new Color(2,62,72));

	
		 				
		T1.setBounds(100,10,1200,50);
		T2.setBounds(190,50,1000,50);
		T3.setBounds(300,90,1000,50);
		
		T2.setForeground(Color.RED);
		T1.setForeground(Color.RED);
		T3.setForeground(Color.RED);
		
		
		note.setBounds(330,95,900,120);
		note1.setBounds(420,120,500,120);
		
		note.setForeground(Color.MAGENTA);
		note1.setForeground(Color.MAGENTA);
				
		by.setBounds(650,320,150,20);
		name.setBounds(630,375,150,20);
		depart.setBounds(630,400,150,30);
		regno.setBounds(630,425,175,30);
				
		by.setForeground(Color.GREEN);
	    name.setForeground(Color.GREEN);
		depart.setForeground(Color.GREEN);
		regno.setForeground(Color.GREEN);
					    
		note.setFont(f0);
		note1.setFont(f);
	    by.setFont(f);
		name.setFont(f);
		depart.setFont(f);
		regno.setFont(f);
		
			 T1.setFont(f1);
		 T2.setFont(f1);
		 T3.setFont(f1);
		 Sub.setFont(f);
		 Exit.setFont(f);
		
		Sub.setBounds(370,640,150,30);Exit.setBounds(590,640,150,30);
			
		c.add(T1);
		c.add(T3);
		c.add(T2);
				
		Sub.setBackground(new Color(151,232,158));
		Exit.setBackground(new Color(151,232,158));
		Sub.setForeground(Color.BLACK);
		Exit.setForeground(Color.BLACK);
		
		jf.show();

		
		c.add(note);
		c.add(note1);
		
		c.add(by);
		c.add(name);
		c.add(depart);
		c.add(regno);
		
		
		c.add(Sub);
		c.add(Exit);
		
		Sub.addActionListener(this);
		Exit.addActionListener(this);
		
		jf.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent win) {
				System.exit(0);
			}
		});


	}

	public static void main(String args[])
	{
			 new title();

	}	

    public void actionPerformed(ActionEvent e)

	{
if (e.getSource() == Exit) {

			jf.setVisible(false);

			System.exit(0);
}
		if(e.getSource()== Sub)
        {

			new mobileterminal();

			
        }
    }
}
	
		
	
					
					
		          
	

	

	
	
